package com.shoux.api.web.entity.apiData;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 分支机构信息
 * </p>
 *
 * @author xiaoZhi
 * @since 2022-03-25
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("filiationlist")
@ApiModel(value="FiliationlistEntity对象", description="分支机构信息")
public class FiliationlistEntity extends Model<FiliationlistEntity> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "企业名称")
    @TableField("enterpriseName")
    private String enterprisename;

    @ApiModelProperty(value = "统一信用代码")
    private String creditcode;

    @ApiModelProperty(value = "分支机构名称")
    @TableField("brName")
    private String brname;

    @ApiModelProperty(value = "分支机构统一社会信用代码")
    @TableField("brCreditCode")
    private String brcreditcode;

    @ApiModelProperty(value = "分支机构工商注册号")
    @TableField("brRegNo")
    private String brregno;

    @ApiModelProperty(value = "分支机构登记机关")
    @TableField("brRegOrg")
    private String brregorg;

    @ApiModelProperty(value = "分支机构负责人")
    @TableField("brPrincipal")
    private String brprincipal;

    @ApiModelProperty(value = "分支机构总数量")
    @TableField("brAmount")
    private String bramount;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
